package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.entity.SysOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author wangsihan
 * @since 2021-10-08
 */
@Mapper
public interface SysOrderMapper extends BaseMapper<SysOrder> {

    /**
     * 根据用户id查询商铺的总营业额
     *
     * @param storeId 商铺id
     * @return 商铺总营业额
     */
    public double findUserIdBySumMoney(@Param("storeId") int storeId);

    /**
     * 添加订单信息
     */
    public void addOrder(@Param("order") SysOrder order);

}
